package br.mobilelawyer.app.hma;

import br.mobilelawyer.app.hma.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.widget.Toast;

public class Splash extends Activity implements Runnable {

	private final int DELAY = 3000;

	@Override
	public void onCreate(Bundle icicle) {
		super.onCreate(icicle);

		setContentView(R.layout.layout_splash);
		//setRequestedOrientation(5);

		Toast.makeText(this, "Aguarde carregando...", Toast.LENGTH_SHORT)
				.show();

		Handler h = new Handler();
		h.postDelayed(this, DELAY);

	}

	@Override
	public void run() {

		startActivity(new Intent(this, TestaAdvogado.class));

		finish();

	}
}